<!DOCTYPE html>
<!-- saved from url=(0144)https://thxy.campusphere.net/wec-counselor-leave-apps/leave/share/index.html?id=c50a3da369ad444bbf287242c72c5a2e&needApproval=1&channel=Wechat#/ -->
<html lang="en">
<script type="text/javascript" src="chrome-extension://nhpjggchkhnlbgdfcbgpdpkifemomkpg/pageScripts/main.js"></script>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover">
    <link rel="icon" href="https://thxy.campusphere.net/wec-counselor-leave-apps/leave/favicon.ico">
    <title>请假</title>
    <link href="https://thxy.campusphere.net/wec-counselor-leave-apps/leave/css/chunk-707d1e16.7aa4b51a.css"
        rel="prefetch">
    <link href="https://thxy.campusphere.net/wec-counselor-leave-apps/leave/js/chunk-707d1e16.13b0d9f4.js"
        rel="prefetch">
    <link href="./index_files/chunk-common.209299d0.css" rel="preload" as="style">
    <link href="./index_files/chunk-vendors.8c468b3e.css" rel="preload" as="style">
    <link href="./index_files/chunk-common.56aad48a.js" rel="preload" as="script">
    <link href="./index_files/chunk-vendors.9faeaa69.js" rel="preload" as="script">
    <link href="./index_files/share.d6ac1270.js" rel="preload" as="script">
    <link href="./index_files/chunk-vendors.8c468b3e.css" rel="stylesheet">
    <link href="./index_files/chunk-common.209299d0.css" rel="stylesheet">
    <link rel="stylesheet" href="./index_files/font_1921143_afl404vl6g.css">
</head>

<body class=""><noscript><strong>We're sorry but 请假 doesn't work properly without JavaScript enabled. Please enable it
            to continue.</strong></noscript>
    <div id="app">
    </div>
    <script src="./index_files/hook.min.js"></script>


    <script>
        function howLong(time1, time2){
            time1 = time1.getTime();
            time2 = time2.getTime();
            var cha     = time1 > time2 ? time1 - time2 : time2 - time1;
            var day     = Math.floor(cha / (24 * 3600 * 1000));
            var hours   = Math.floor(cha % (24 * 3600 * 1000) / (3600 * 1000));
            var minutes = Math.floor(cha % (24 * 3600 * 1000) % (3600 * 1000) / (60 * 1000));
            var seconds = Math.floor(cha % (24 * 3600 * 1000) % (3600 * 1000) % (60 * 1000) / 1000);
            return `${day}天${hours}小时${minutes}分钟`;
        }

        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return decodeURI(r[2]); return null;
        }

        const userId = getUrlParam('userId') // 学号
        const name = getUrlParam('name') // 姓名
        const startTime = getUrlParam('startTime').replace("T"," ").replace("%3A",":") // 开始时间
    
        const endTime = getUrlParam('endTime').replace("T"," ").replace("%3A",":") // 结束时间
        const leaveReason = getUrlParam('leaveReason') // 请假原因
        const urgencyMobile = getUrlParam('urgencyMobile') // 紧急联系人
        const destination = getUrlParam('destination').replaceAll('%2F','/') // 目的地
        const grade = getUrlParam('grade') // 年级
        const dept = getUrlParam('dept') // 学院
        const major = getUrlParam('major') // 专业
        const cls = getUrlParam('cls') // 班级

        const totalDays = howLong(new Date(startTime), new Date(endTime)) // 请假总时长

        const gender = getUrlParam('gender') // 性别

        const res = {
            "code": "0",
            "message": "SUCCESS",
            "datas": {
                "condition": {
                    "allowWithdraw": 1,
                    "reportTutorialUrl": "http://catqa.cpdaily.com/2018/10/24/如何销假？/",
                    "reportTutorialTitle": "如何销假？",
                    "shutDown": false
                },
                "isReport": "1",
                "isExtend": "1",
                "isAllowedExtend": true,
                "isPress": null,
                "nextApproveInfo": null,
                "leaveType": {
                    "id": "5849",
                    "code": 29,
                    "name": "离校不离市（学生）",
                    "mustOut": 1,
                    "needApproval": 1,
                    "reportApply": 0,
                    "reportApplyFlow": 0,
                    "enableAttach": 0,
                    "disableTime": 0
                },
                "currApprover": null,
                "detail": {
                    "id": "c50a3da369ad444bbf287242c72c5a2e",
                    "userId": `${userId}`,
                    "userWid": null,
                    "userName": `${name}`,
                    "dormitoryInfo": "-",
                    "gender": `${gender}`,
                    "leaveType": "离校不离市（学生）",
                    "startTime": `${startTime}`,
                    "endTime": `${endTime}`,
                    "startDate": `${startTime}`,
                    "endDate": `${endTime}`,
                    "outStatus": true,
                    "pressStatus": false,
                    "urgencyMobile": `${urgencyMobile}`,
                    "studentMobile": "18929497622",
                    "approverName": "赵丹丹",
                    "approverId": "20220033",
                    "approverWid": "92358074",
                    "leaveReason": `${leaveReason}`,
                    "status": "2",
                    "approverOpinion": "",
                    "applyAttach": [
                        {
                            "type": "1",
                            "url": "https://hw-wecres-counselor.campusphere.net/counselor/leave/1020369258742289/attachment/70e0e2b5f995480dbc9d7b7187f0bfea.png"
                        }
                    ],
                    "reportAttach": [

                    ],
                    "reportLocation": null,
                    "reportLongitude": null,
                    "reportLatitude": null,
                    "reportStatus": null,
                    "reportLogs": [

                    ],
                    "createTime": "09-15 15:52",
                    "isResumptionSelf": null,
                    "reportComment": null,
                    "isOverdue": true,
                    "lastOut": null,
                    "dstStatus": "6",
                    "leaveName": "离校不离市（学生）",
                    "mustOut": 1,
                    "sex": "女",
                    "totalDays": `${totalDays}`,
                    "ljDays": null,
                    "leaveHour": "3090",
                    "leaveCreateTime": "09-15 15:52",
                    "locationType": 0,
                    "applyLocation": {
                        "locationType": 0,
                        "address": "广东省广州市白云区东昇路",
                        "longitude": "113.46672246180246",
                        "latitude": "23.263566655192786"
                    },
                    "ccInfo": null,
                    "actEndTime": "09-18 15:30",
                    "actEndTimeDesc": "2天3小时30分钟",
                    "actStatus": "6",
                    "isEarlyEnd": "0",
                    "disclaimers": "本人承诺填写的信息真实有效，并对本次提交请假申请的信息真实性负责。",
                    "destination": `${destination}`,
                    "isIotReport": 0
                },
                "leaveExtends": [

                ],
                "reportPlaces": [
                    {
                        "wid": "597",
                        "address": "广东技术师范大学(天河学院)",
                        "longitude": "113.46344001494877",
                        "latitude": "23.26507291291062",
                        "radius": "1500",
                        "counName": "田桂丰"
                    }
                ],
                "holidayAutoDefineVos": [

                ],
                "termination": {
                    "allowTerminate": 0,
                    "terminated": 0,
                    "terminationObjectName": null,
                    "terminationReason": null,
                    "terminationDate": null
                },
                "notOutReport": {
                    "setedNotOutReport": 1,
                    "rule": 0,
                    "operatorWid": "91673052",
                    "operatorId": "20200028",
                    "operatorName": "邓思思",
                    "operatorDate": "2022-04-01 09:28:03"
                },
                "studentInfo": {
                    "userId": `${userId}`,
                    "userWid": "1030420965",
                    "userName": `${name}`,
                    "gender": Number(gender),
                    "grade": `${grade}`,
                    "dept": `${dept}`,
                    "major": `${major}`,
                    "cls": `${cls}`,
                    "photo": null,
                    "dorm": ""
                },
                "recordStatus": "6",
                "nowTime": new Date()
            }
        }
        console.log(1)
        ah.proxy({
            //请求发起前进入
            onRequest: (config, handler) => {
                let url = config.url
                console.log(url)
                if (url === '/wec-counselor-leave-apps/leave/share/detail') {
                    handler.resolve({
                        status: 200,
                        headers: { 'content-type': 'text/text' },
                        response: res
                    })
                }
                // handler.next(config);
            }
        })
    </script>

    <!-- <script src="./index_files/aliyun-oss-sdk-5.0.1.min.js"></script> -->
    <!-- <script src="./index_files/baidujsSdk@2.js"></script> -->
    <!-- <script type="text/javascript" src="./index_files/getscript"></script> -->
    <!-- <script src="./index_files/area.js"></script> -->
    <!-- <script src="./index_files/api"></script> -->
    <!-- <script type="text/javascript" src="./index_files/getscript(1)"></script> -->

    <script src="./index_files/chunk-vendors.9faeaa69.js"></script>

    <script src="./index_files/chunk-common.56aad48a.js"></script>

    <script src="./index_files/share.d6ac1270.js"></script>

    <div class="van-toast van-toast--middle van-toast--loading" style="z-index: 2001; display: none;">
        <div class="van-loading van-loading--spinner van-toast__loading"><span
                class="van-loading__spinner van-loading__spinner--spinner"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
        </div>

        <div class="van-toast__text">加载中...</div>
    </div><iframe class="api-interceptor" frameborder="none" src="./index_files/index.html"
        style="height: 100% !important; width: 450px !important; min-width: 1px !important; position: fixed !important; inset: 0px 0px auto auto !important; z-index: 2147483647 !important; transform: translateX(470px) !important; transition: all 0.4s ease 0s !important; box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 15px 2px !important;"></iframe>
    <!---->

</body>

</html>